<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 命名函数
    async function fn() {

    }

    // 匿名函数

    var fn = async function () { }
    var fn = async () => {

    }

    document.onclick = async function () {

    }


    var obj = {
        a: 1,
        b: 2,
        sum: async function () { },
        async sum() {

        },
    };


    (async function () {

    })()


    class Cat {
        constructor(name, color) {
            this.name = name;
            this.color = color;
        }

        async say() {
            console.log(this.name, this.color);
        }
    }
</script>

</html>